<?php
/**
 * GetParams.php
 *
 * 视图获取系统环境参数助手
 * 此助手提供在试图内也能获取 URL 等参数.
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://momoger.com/license
 *
 * @category	Momoger
 * @package 	Momoger_View
 * @subpackage 	Helper
 * @author 		Guya
 * @version    	1.0
 * @copyright  	Copyright © 2009 www.momoger.com All Rights Reserved.
 * @license    	http://momoger.com/license     New BSD License
 */

/** Zend_View_Helper_Abstract */
//require_once 'Zend/View/Helper/Abstract.php';

/**
 * 视图获取系统环境参数助手类
 *
 * @category 	Momoger
 * @package		Momoger_View
 * @subpackage 	Helper
 * @copyright  	Copyright © 2009 www.momoger.com All Rights Reserved.
 * @license    	http://momoger.com/license     New BSD License
 */
class Momoger_View_Helper_GetParams extends Zend_View_Helper_Abstract {

	/**
	 * 获取当前URL访问请求参数
	 *
	 * @return array
	 */
	public function getParams() {
		return Zend_Controller_Front::getInstance()->getRequest()->getParams();
	}
}